package com.supermarket_project.service;

import com.supermarket_project.pojo.CashGood;
import com.supermarket_project.pojo.FindGoodName;
import com.supermarket_project.pojo.Judge;

import java.util.List;

public interface CashService {
    //根据商品条码查找数据
    CashGood find(FindGoodName code);

//    //判断商品是否能售卖
//    List<Judge> judge(List<CashGood> list);

    //给数据加上流水号
    List<CashGood> addSerialNumber(List<CashGood> list);

    //保存数据到数据库
    boolean saveCash(List<CashGood> list);

    //修改商品的affirm  是否被卖出  1是被卖出
    boolean upDateAffirm(String serialNumber);
}